package com.csu.bailan.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@TableName("user")
@AllArgsConstructor
@NoArgsConstructor
@Data
public class User {
    @TableId(value = "user_id")
    private String userId;
    private String username;
    private String nickname;
    private String email;
    private String phone;
    private Date birthday;
    @TableField("create_time")
    private Date createTime;
    @TableField(value ="update_time", update="now()")
    private Date updateTime;
}
